<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页端</title>
    <style>
        img {
            width: 200px;
            height: 200px;
            border-radius: 50%;
        }

        .container {
            display: flex;
            flex-direction: column;
        }
    </style>
</head>

<body>
    <div class="container">
        <h1>混合开发</h1>
        <button>调用原生1</button>
        <button id="btnStore">相册选图片</button>
        <img>
    </div>

    <!-- 引入调试控制台 -->


    <script>
        const btn = document.querySelector('button')
        btn.onclick = () => {
            akl.showMsg('网页调用原生')
        }

        function func(str) {
            const h1 = document.querySelector('h1')
            h1.innerText = str
        }

        const btnStore = document.querySelector('#btnStore')
        btnStore.addEventListener('click', async () => {
            document.querySelector('img').src = 'data:image/jpg;base64,' + await akl.getImgFromStoreBase64()
        })
    </script>
</body>

</html>